<h2>Register</h2>
<%= error_messages_for 'user' %>
<% form_tag(:action => 'register') do %>
  Login:
  <%= text_field 'user', 'username' %>
  <br /><br />

  Password:
  <%= password_field 'user', 'password' %>
  <br /><br />

  Password again:
  <%= password_field 'user', 'password_confirmation' %>
  <br /><br />

  E-mail:
  <%= text_field 'user', 'email' %>
  <br /><br />

  <%= submit_tag "Register me" %>
<% end %>
